import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/api/bizapp/biz/proinfo/${url}`, ...arg)
const acutalcostRequest = (url, ...arg) => baseRequest(`/api/bizapp/biz/acutalcost/${url}`, ...arg)
export default {
    proinfoadd(data) {
        return request('add', data, 'post')
    },
    proinfodelete(data) {
        return request('delete', data, 'post')
    },
    proinfoedit(data) {
        return request('edit', data, 'post')
    },
    proinfopage(data) {
        return acutalcostRequest('page', data, 'get')
    },
    stop(data) {
        return request('stop', data, 'post')
    },
}
